home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Serial / s / SetFormat < prev    next >
Text File  |  1995-08-26  |  1KB  |  33 lines

  1. ;   ####             #    #     # #
  2. ;   #   #            #    #       #          The FreeWare C library for
  3. ;   #   #  ##   ###  #  # #     # ###             RISC OS machines
  4. ;   #   # #  # #     # #  #     # #  #   ___________________________________
  5. ;   #   # ####  ###  ##   #     # #  #
  6. ;   #   # #        # # #  #     # #  #    Please refer to the accompanying
  7. ;   ####   ### ####  #  # ##### # ###    documentation for conditions of use
  8. ;   ________________________________________________________________________
  9. ;
  10. ;   File:    Serial.s.SetFormat
  11. ;   Author:  Copyright © 1993 Jason Howat
  12. ;   Version: 1.00 (21 Nov 1993)
  13. ;   Purpose: Set the format for data to be transmitted and received over
  14. ;            the serial line.
  15.  
  16.         GET     ^.h.regdefs
  17.         GET     ^.h.swinos
  18.         GET     ^.h.macros
  19.  
  20. ; os_error *Serial_SetFormat(int format);
  21.  
  22.         PREAMBLE
  23.         STARTCODE Serial_SetFormat
  24. ;
  25.         STMFD   sp!, {lr}
  26.         MOV     a2, a1
  27.         MOV     a1, #1
  28.         SWI     SWI_OS_SerialOp + XOS_Bit
  29.         MOVVC   a1, #0
  30.         LDMFD   sp!, {pc}^
  31. ;
  32.         END
  33.